A. x++
B. ++x
C. x=x-1
D. None of these
Advertisement
Related Mcqs:
- All collection classes are available in _________________?
- A. java.util package B. java.io package C. java.lang package D. java.awt package...
- Package of drawstring() method is _________________?
- A. java.awt B. javax.swing C. java.applet D. java.io...
- Which statement is static and synchronized in JDBC API ?
- A. getConnection() B. executeQuery() C. prepareCall() D. executeUpdate()...
- Which is the predefined package ?
- A. Lang package B. util package C. io package D. All of above...
- After the compilation of the java source code, which file is created by the JVM ?
- A. .class B. .doc C. .java D. .cdr...
- A method within a class is only accessible by classes that are defined within the same package as the class of the method. Which one of the following is used to enforce such restriction ?
- A. Declare the method with the keyword public. B. Declare the method with the keyword private. C. Do not declare the method with any accessibility modifiers. D. Declare the method with the keyword public and private....
- Which method can’t be overidden ?
- A. println B. final C. super D. static...
- Which method is used to perform DML statements in JDBC ?
- A. executeUpdate() B. executeQuery() C. execute() D. None of above...
- Thread class is available in________________?
- A. java.lang package B. java.util package C. java.awt package D. java.io package...
- Which of the following statements about arrays is syntactically wrong ?
- A. arrayName[] p = new arrayName[5]; B. arrayName p[][] = new arrayName[2][]; C. arrayName[] p []; D. arrayName p[5];...
Advertisement